package SimpleInterfance;

public abstract class Bird {
	ShoutAbility shout_ability;
	//鸟类的够着方法，用来初始化鸟叫行为
	public Bird(ShoutAbility shout_ability){
		this.shout_ability = shout_ability;
		
		
		
	}
	
	//叫
	public void shout(){
		shout_ability.shout();
			
		}
    //飞行
	public void fly(){
		System.out.println("弹射飞");
	}
	public abstract void attack();
	

	

}
